package fr.babos.test.bootstrap 
{
	import flash.display.Sprite;
	import flash.events.Event;
	import fr.babos.core.bootstrap.Bootstrap;
	
	/**
	 * @author ZoulouX
	 */
	public class NewBootstrapTest extends Sprite 
	{
		protected var _bootstrap:Bootstrap;
		
		public function NewBootstrapTest ()
		{
			if (stage != null)
			{
				init();
			}
			else
			{
				addEventListener(Event.ADDED_TO_STAGE, init);
			}
		}
		
		protected function init(event:Event = null):void
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			
			_bootstrap = new Bootstrap();
		}
	}
}